I have an external drive that I have automatically mounted before, but this time I am having problems. Each time I make an fstab entry I can not boot to the desktop. Fortunately I backed up the original fstab so, I have been able to rm the bad one and cp the backup in the CLI.
fdisk -l gives me this:
Code:
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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: 0xd9aba86c
Device Boot Start End Blocks Id System
/dev/sda1 63 1953520064 976760001 83 Linux
Disk /dev/sdb: 150.0 GB, 150039945216 bytes
255 heads, 63 sectors/track, 18241 cylinders, total 293046768 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: 0x00087d8a
Device Boot Start End Blocks Id System
/dev/sdb1 2048 4208639 2103296 82 Linux swap / Solaris
/dev/sdb2 * 4208640 46153727 20972544 83 Linux
/dev/sdb3 46153728 288817151 121331712 83 Linux
/dev/sdb4 288817152 293025791 2104320 82 Linux swap / Solaris
It is the 1000.2 GB drive I want to mount.
Then Parted gives me this:
Code:
linux-xxx:~ # parted
GNU Parted 2.4
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: ATA WDC WD10EAVS-00D (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 1000GB 1000GB primary ext3 type=83
fstab looks like this:
Code:
/dev/disk/by-id/ata-WDC_WD1500HLFS-01G6U1_WD-WXC0CA901217-part1 swap swap defaults 0 0
/dev/disk/by-id/ata-WDC_WD1500HLFS-01G6U1_WD-WXC0CA901217-part4 swap swap defaults 0 0
/dev/disk/by-id/ata-WDC_WD1500HLFS-01G6U1_WD-WXC0CA901217-part2 / ext4 acl,user_xattr 1 1
/dev/disk/by-id/ata-WDC_WD1500HLFS-01G6U1_WD-WXC0CA901217-part3 /home ext4 defaults 1 2
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
I have created a mount point: /mnt/teradrive, and this works:
Code:
mount /dev/sda1 /mnt/teradrive
So I should be able to auto-mount by altering fstab like this:
Code:
/dev/disk/by-id/ata-WDC_WD1500HLFS-01G6U1_WD-WXC0CA901217-part1 swap swap defaults 0 0
/dev/disk/by-id/ata-WDC_WD1500HLFS-01G6U1_WD-WXC0CA901217-part4 swap swap defaults 0 0
/dev/disk/by-id/ata-WDC_WD1500HLFS-01G6U1_WD-WXC0CA901217-part2 / ext4 acl,user_xattr 1 1
/dev/disk/by-id/ata-WDC_WD1500HLFS-01G6U1_WD-WXC0CA901217-part3 /home ext4 defaults 1 2
/dev/sda1 /mnt/teradrive ext3 defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
Right?
One more question. The info on sda that Parted gives includes this - "Partition Table: msdos". Should I back up all the stuff on this drive and reformat it?
No comments:
Post a Comment