LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 06-01-2009, 04:24 PM   #1
dp-danw
LQ Newbie
 
Registered: Jun 2009
Location: Utah
Distribution: openSUSE
Posts: 3
Thanked: 0
Mount External USB ext3, But Reverting to fat32


[Log in to get rid of this advertisement]
I'd like to mount an external USB drive for full local backups using rsnapshot. This requires a filesystem like ext3 for the hard links in "cp -al" to work. After I prepared my USB drive with fdisk and mkfs.ext3 the drive is still stuck on FAT32 though.

Disto: ClarkConnect 4.x (CentOS equivalent).

Code:
# fdisk -l
...
Disk /dev/sdd: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1       60801   488384001    c  W95 FAT32 (LBA)

Using fdisk /dev/sdd1 I make a new primary partition, type 83, and write it and get this alert:

Code:
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
This may be obvious, but do I really need a full system restart before it will pick up the new partition information? Is there any other way to lock it in rather than bringing down a production server?
dp-danw is offline  
Tag This Post , ,
Reply With Quote
Old 06-01-2009, 04:45 PM   #2
MS3FGX
Senior Member
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 4,217
Thanked: 80
If it is an external USB drive, I am assuming you tried unplugging it and plugging it back in?
MS3FGX is offline     Reply With Quote
Old 06-01-2009, 04:51 PM   #3
dp-danw
LQ Newbie
 
Registered: Jun 2009
Location: Utah
Distribution: openSUSE
Posts: 3
Thanked: 0

Original Poster
It's at a remote location, so no, I haven't done that. I'll get someone to cycle the device. Is that considered sufficient for a reboot?
dp-danw is offline     Reply With Quote
Old 06-01-2009, 04:52 PM   #4
kolodz1
LQ Newbie
 
Registered: Apr 2008
Distribution: fedora, debian
Posts: 8
Thanked: 1
Fdisk works on a device, meaning you need to run 'fdisk /dev/sdd' to get the desired effect. You're getting an 'invalid argument' error because /dev/sdd1 points to the partition on the disk and not the disk itself.

You should be able get it all done if you drop the 1 there. Also, make sure you're not working on a mounted filesystem.
kolodz1 is offline     Reply With Quote
Old 06-01-2009, 05:12 PM   #5
dp-danw
LQ Newbie
 
Registered: Jun 2009
Location: Utah
Distribution: openSUSE
Posts: 3
Thanked: 0

Original Poster
Brilliant!

How did I ever get in the bad habit of adding the "1" at the end. So here's the result after running fdisk /dev/sdd and creating the ext3 partition.

Code:
Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
[root@server ~]# fdisk -l
...
Disk /dev/sdd: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1       60801   488384001   83  Linux
Much better.
dp-danw is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mayday! How do I manually mount my encrypted ext3 external usb disk? simonsharry Linux - Newbie 11 02-15-2009 05:49 AM
external ext3 drives always mount as read-only! Gilrad Linux - Software 6 06-28-2008 01:06 AM
How do I manually mount a FAT32 external drive in Kubuntu 7.0.0? higleyg Linux - Newbie 1 05-26-2008 06:37 PM
USB Hardrive with FAT32 and ext3 partitions in need of repair/defrag MiniDev Linux - Hardware 6 02-15-2008 04:05 PM
USB external drive: NTFS/FAT32 detected, ext3 not blanks77 Linux - Hardware 7 04-25-2006 09:45 PM


All times are GMT -5. The time now is 12:50 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration