@ VINNY,
Doesn`t work , again the line gets thrown out at boot.
UUID=41c3909e-78ab-4bf7-b2dc-5d541a6aa8b9 /media/hd3 jfs defaults 0 0
UUID=41c3909e-78ab-4bf7-b2dc-5d541a6aa8b9 /media/hd3 jfs defaults,nofail 0 0
UUID=eb459c80-7168-4749-aab3-36ae9d4eb6e8 /media/hd auto defaults,nofail 0 2
Which of the commands in bold do i use ? Are those spaces significant ?
Announcement
Collapse
No announcement yet.
Mount drive at boot up problem.
Collapse
This topic is closed.
X
X
-
door if in unity or GnomeCode:kdesudo kate /etc/fstab
(or gksu depending on how the sys is set up)and add to the bottom of the fileCode:gksudo gedit /etc/fstab
or for UUID use 41c3909e-78ab-4bf7-b2dc-5d541a6aa8b9 in place of , "/dev/sdc1"Code:/dev/sdc1 /media/hd3 jfs defaults 0 0
VINNY
- Top
- Bottom
Leave a comment:
-
Hi VINNY ,
Yes , i do know that the drive mounts in ro , want it in rw. The mkdir command should only be required once but nooooo......... nothing is ever straight forward is it ? or is it ?
Ok, output of `sudo parted - l`
Output of blkid :Code:reel@BM2LTSR66RBin:/media/hd/home/reel$ sudo parted -l [sudo] password for reel: Model: ATA TOSHIBA MQ01ABD0 (scsi) Disk /dev/sda: 500GB Sector size (logical/physical): 512B/4096B Partition Table: msdos Number Start End Size Type File system Flags 1 32.3kB 14.0GB 14.0GB primary ext4 boot 2 14.0GB 14.0GB 8225kB primary ext3 3 14.0GB 15.5GB 1497MB primary linux-swap(v1) 4 15.5GB 500GB 485GB primary ext4 Model: ATA WDC WD20EARS-00M (scsi) Disk /dev/sdb: 2000GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 17.4kB 2000GB 2000GB jfs Linux/Windows data msftdata Model: ATA WDC WD30EZRS-00J (scsi) Disk /dev/sdc: 3001GB Sector size (logical/physical): 512B/4096B Partition Table: gpt Number Start End Size File system Name Flags 1 17.4kB 3001GB 3001GB jfs Linux/Windows data msftdata Model: ATA ST32000542AS (scsi) Disk /dev/sdd: 2000GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 17.4kB 2000GB 2000GB jfs Linux/Windows data msftdata reel@BM2LTSR66RBin:/media/hd/home/reel$
Code:reel@BM2LTSR66RBin:/media/hd/home/reel$ sudo blkid [sudo] password for reel: /dev/sda1: UUID="dbfcd848-5a9e-43dd-bbf7-179679e21be7" TYPE="ext4" /dev/sda2: UUID="ffe33e8a-9853-4af2-b73e-392912da6bcb" SEC_TYPE="ext2" TYPE="ext3" /dev/sda3: UUID="ad73c128-bd08-4cd6-ab6c-a4524165c271" TYPE="swap" /dev/sda4: LABEL="Reel Media Drive" UUID="eb459c80-7168-4749-aab3-36ae9d4eb6e8" TYPE="ext4" /dev/sdb1: LABEL="Reel Media Drive" UUID="c36f1885-62ea-4fcc-9570-1cf15d96bc3a" TYPE="jfs" /dev/sdd1: LABEL="Reel Media Drive" UUID="77dcd436-432a-43d1-8a74-789bb27a672e" TYPE="jfs" /dev/sdc1: LABEL="Reel Media Drive" UUID="41c3909e-78ab-4bf7-b2dc-5d541a6aa8b9" TYPE="jfs" reel@BM2LTSR66RBin:/media/hd/home/reel$
- Top
- Bottom
Leave a comment:
-
this only has to be run one time , the command "mkdir" creates a directory at the specified location with the specified name and remains until removed by you .Originally posted by kdeuser View PostHi ,
Just a small problem on a drive that always mounted at boot up and now have to manually mount from terminal.
Have tried to write the drive`s UUID into /etc/fstab/ but gets thrown out.
The commands used to mount the drive are :
This creates the mount point -
Code:[B]sudo mkdir /media/hd3[/B]
you are shure you are using the JFS file system for this drive ? ,,,,,, and you do realize you are mounting it "read only" > ro<Originally posted by kdeuser View PostThis mounts the drive :
Code:[B]sudo mount -vs -t jfs -o ro,nointegrity,errors=remount-ro /dev/sdc1 /media/hd3 [/B]
yup it mounted ................Originally posted by kdeuser View PostEvery time have to enter these commands into terminal.
Print of df -h :
Code:reel@BM2LTSR66RBin:/media/hd/home/reel$ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 13G 8.4G 3.7G 70% / none 4.0K 0 4.0K 0% /sys/fs/cgroup udev 2.0G 12K 2.0G 1% /dev tmpfs 406M 1.4M 404M 1% /run none 5.0M 0 5.0M 0% /run/lock none 2.0G 148K 2.0G 1% /run/shm none 100M 28K 100M 1% /run/user /dev/sda4 445G 4.8G 417G 2% /media/hd /dev/sdd1 1.9T 1.8T 49G 98% /media/hd1 /dev/sdb1 1.9T 1.3T 557G 71% /media/hd2 tmpfs 10M 0 10M 0% /media /dev/sdc1 2.8T 2.4T 385G 87% /media/hd3
you manualy mounting the drive will not automatically add it to /etc/fstab ,,,,,,,, you must add it your self .Originally posted by kdeuser View PostPrint of cat/etc/fstab/ :
Here, fstb is showing 3 drives, i just manually mounted the offending drive and it`s not in there ?Code:reel@BM2LTSR66RBin:/media/hd/home/reel$ cat /etc/fstab # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc nodev,noexec,nosuid 0 0 # / was on /dev/sda1 during installation /dev/sda1 / ext4 errors=remount-ro 0 1 # swap was on /dev/sda3 during installation /dev/sda3 none swap sw 0 0 UUID=eb459c80-7168-4749-aab3-36ae9d4eb6e8 /media/hd auto defaults,nofail 0 2 UUID=77dcd436-432a-43d1-8a74-789bb27a672e /media/hd1 auto defaults,nofail 0 2 UUID=c36f1885-62ea-4fcc-9570-1cf15d96bc3a /media/hd2 auto defaults,nofail 0 2 reel@BM2LTSR66RBin:/media/hd/home/reel$
Thanks for all your help on this.
post the output ofand we will give you the correct line to add ...........if you want to use UUID's allso post the output ofCode:sudo parted -l
VINNYCode:sudo blkid
- Top
- Bottom
Leave a comment:
-
Mount drive at boot up problem.
Hi ,
Just a small problem on a drive that always mounted at boot up and now have to manually mount from terminal.
Have tried to write the drive`s UUID into /etc/fstab/ but gets thrown out.
The commands used to mount the drive are :
This creates the mount point -
This mounts the drive :Code:[B]sudo mkdir /media/hd3[/B]
Every time have to enter these commands into terminal.Code:[B]sudo mount -vs -t jfs -o ro,nointegrity,errors=remount-ro /dev/sdc1 /media/hd3 [/B]
Print of df -h :
Print of cat/etc/fstab/ :Code:reel@BM2LTSR66RBin:/media/hd/home/reel$ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 13G 8.4G 3.7G 70% / none 4.0K 0 4.0K 0% /sys/fs/cgroup udev 2.0G 12K 2.0G 1% /dev tmpfs 406M 1.4M 404M 1% /run none 5.0M 0 5.0M 0% /run/lock none 2.0G 148K 2.0G 1% /run/shm none 100M 28K 100M 1% /run/user /dev/sda4 445G 4.8G 417G 2% /media/hd /dev/sdd1 1.9T 1.8T 49G 98% /media/hd1 /dev/sdb1 1.9T 1.3T 557G 71% /media/hd2 tmpfs 10M 0 10M 0% /media /dev/sdc1 2.8T 2.4T 385G 87% /media/hd3
Here, fstb is showing 3 drives, i just manually mounted the offending drive and it`s not in there ?Code:reel@BM2LTSR66RBin:/media/hd/home/reel$ cat /etc/fstab # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc nodev,noexec,nosuid 0 0 # / was on /dev/sda1 during installation /dev/sda1 / ext4 errors=remount-ro 0 1 # swap was on /dev/sda3 during installation /dev/sda3 none swap sw 0 0 UUID=eb459c80-7168-4749-aab3-36ae9d4eb6e8 /media/hd auto defaults,nofail 0 2 UUID=77dcd436-432a-43d1-8a74-789bb27a672e /media/hd1 auto defaults,nofail 0 2 UUID=c36f1885-62ea-4fcc-9570-1cf15d96bc3a /media/hd2 auto defaults,nofail 0 2 reel@BM2LTSR66RBin:/media/hd/home/reel$
Thanks for all your help on this.Last edited by kdeuser; Feb 17, 2015, 01:19 PM.Tags: None
- Top
- Bottom
Users Viewing This Topic
Collapse
There are 0 users viewing this topic.
Leave a comment: