You are not logged in.
Hello, the glorious Arch Linux community!
I'm setting a new arch system on an Asus eeepc 900. I have some issues, but more or less they are expectable and seems to be resolved with an extensible googlefication. But one thing has stumbled me.
Let me explain. Here is my fstab:
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
devpts /dev/pts devpts defaults 0 0
shm /dev/shm tmpfs nodev,nosuid 0 0
#tmpfs /tmp tmpfs nodev,nosuid,defaults,mode=1777 0 0
/dev/sda1 / ext4 noatime,defaults 0 1
/dev/sdb1 /home ext4 relatime,defaults 0 1
/dev/sdb2 /tmp ext4 relatime,defaults 0 1
/dev/sdb3 /var ext4 relatime,defaults 0 1
/dev/sdb4 /media/Data ext4 relatime,defaults 0 1
/dev/sdb4 is supposed for all my data junk, so I decided to mount it into /media/Data (since as far as I know there is no special "junk" directory in LFH except for /home, but I'd like to keep /home separate).
Well. After a while I came to point when I need to setup my filesystem and what am I seeing in that directory?
ls -lg /media/Data
total 60
drwxr-xr-x 2 root 4096 Mar 12 23:54 backups
drwxr-xr-x 11 root 4096 May 20 19:05 cache
drwxr-xr-x 42 root 4096 May 21 00:16 lib
drwxrwsr-x 2 games 4096 Mar 12 23:54 local
drwxrwxrwt 2 root 4096 May 19 21:12 lock
drwxr-xr-x 8 root 4096 May 21 01:42 log
drwx------ 2 root 16384 May 19 01:47 lost+found
drwxrwsr-x 2 mem 4096 May 21 00:09 mail
drwxr-xr-x 2 root 4096 May 19 01:48 opt
drwxr-xr-x 4 root 4096 May 19 22:36 run
drwxr-xr-x 4 root 4096 May 19 02:02 spool
drwxrwxrwt 2 root 4096 May 21 00:05 tmp
Wow, it seems like there is a separate partition or a new filesystem breeding. Rest assure, all these directories are filled with a lot of data. Where did it came from? And what has I done wrong? I expected this partition to e clean and tidy for my needs.
I am maybe a bit too amazed but I haven't seen any similar before so...it's a noob corner anyway.
Last edited by Elline (2011-05-23 16:52:10)
Offline
Oh, sorry. It seems I found what's the problem. I'm somehow managed to swap my partitions.
fsidk -l:
Disk /dev/sdb: 16.1 GB, 16139354112 bytes
255 heads, 63 sectors/track, 1962 cylinders, total 31522176 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000c3cdc
Device Boot Start End Blocks Id System
/dev/sdb1 2048 4196351 2097152 83 Linux
/dev/sdb2 4196352 6293503 1048576 83 Linux
/dev/sdb3 8390656 31520767 11565056 83 Linux
/dev/sdb4 6293504 8390655 1048576 83 Linux
Partition table entries are not in disk order
That's it, sdb4 which is supposed to be my junk holder is now on the sdb3's place. And sdb3 which is for /var is mutually.
Looks like I has failed somewhere with the disk partition.
Anyway, can you recommend any safe method to rename partitions? It would be very appreciated.
Offline
run fdisk, and chose 'x' for expert mode and then 'f' to fix partition order. it's that simple and i only learned it a couple of weeks ago...
Offline
Might want to also consider referring to your partitions in fstab by using UUID rather than sd__ names
Nai haryuvalyë melwa rë
Offline
Thanks, it works!
Yes, I should consider that. I just used to /dev/sdX labels for simplicity.
Offline